package com.example.carmessage2;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

public class YiBiaoPan extends AppCompatActivity {
    TextView yibiaotext;
    ImageView imgalert;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_yi_biao_pan);

        yibiaotext = findViewById(R.id.yibiaotext);
        imgalert = findViewById(R.id.imgalert);

        Intent intent = getIntent();
        boolean baojing = intent.getBooleanExtra("baojing", false);


        if (baojing == true) {


            imgalert.setBackgroundResource(R.drawable.lert);

            yibiaotext.setText("右后方轮胎胎压异常，请及时处理！");
            yibiaotext.setTextColor(Color.RED);
        }

    }

}